Download example code from below link :

https://github.com/Moxa-Linux/Linux-x86-Platform